package logs

import (
	"fmt"
	log "github.com/cihub/seelog"
)

var Logger log.LoggerInterface

func LoadAppConfig() {

	logger, err := log.LoggerFromConfigAsFile("seelog.xml")
	if err != nil {
		fmt.Println(err)
		return
	}
	log.ReplaceLogger(logger)
	log.Info("hello what is you name?")
	useLogger(logger)
}

func useLogger(newLogger log.LoggerInterface) {
	Logger = newLogger
}
